package edu.sctu.practice.class02.Wangpeng.Test4;

/**
 * Created by wp on 2015/11/9.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1,int n2){
        this.n1=n1;
        this.n2=n2;
    }
    void addition(){
        int equal=n1+n2;
        System.out.println("n1+n2="+equal);
    }
    void subtration(){
        int equal=n1-n2;
        System.out.println("n1-n2="+equal);
    }
    void multipliation(){
        int equal=n1*n2;
        System.out.println("n1*n2="+equal);
    }
    void division(){
        int equal=n1/n2;
        System.out.println("n1/n2="+equal);
    }
}
